package com.zheng.business.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class BusinessAgentBillStatistics implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 代理ID
     *
     * @mbg.generated
     */
    private Integer agentId;

    /**
     * 总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountTotal;

    /**
     * 扣除后总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRateTotal;

    /**
     * 剩余未提现金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRemainder;

    /**
     * 更改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public BigDecimal getAmountTotal() {
        return amountTotal;
    }

    public void setAmountTotal(BigDecimal amountTotal) {
        this.amountTotal = amountTotal;
    }

    public BigDecimal getAmountRateTotal() {
        return amountRateTotal;
    }

    public void setAmountRateTotal(BigDecimal amountRateTotal) {
        this.amountRateTotal = amountRateTotal;
    }

    public BigDecimal getAmountRemainder() {
        return amountRemainder;
    }

    public void setAmountRemainder(BigDecimal amountRemainder) {
        this.amountRemainder = amountRemainder;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", agentId=").append(agentId);
        sb.append(", amountTotal=").append(amountTotal);
        sb.append(", amountRateTotal=").append(amountRateTotal);
        sb.append(", amountRemainder=").append(amountRemainder);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessAgentBillStatistics other = (BusinessAgentBillStatistics) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
            && (this.getAmountTotal() == null ? other.getAmountTotal() == null : this.getAmountTotal().equals(other.getAmountTotal()))
            && (this.getAmountRateTotal() == null ? other.getAmountRateTotal() == null : this.getAmountRateTotal().equals(other.getAmountRateTotal()))
            && (this.getAmountRemainder() == null ? other.getAmountRemainder() == null : this.getAmountRemainder().equals(other.getAmountRemainder()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getAmountTotal() == null) ? 0 : getAmountTotal().hashCode());
        result = prime * result + ((getAmountRateTotal() == null) ? 0 : getAmountRateTotal().hashCode());
        result = prime * result + ((getAmountRemainder() == null) ? 0 : getAmountRemainder().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}